package controllers

import (
	"fmt"
	"github.com/astaxie/beego"
)

type ActiveController struct {
	beego.Controller
}

func (c *ActiveController) Get() {
	c.Ctx.WriteString("234")
}

func (c *ActiveController) Active() {
	c.Ctx.WriteString("234")
}

func (c *ActiveController) EdicActive() {
	//接受数据
	id, err := c.GetInt("id")
	if err != nil {
		beego.Info("数据报错")
		c.Ctx.WriteString("参数不正确")

		return
	}
	fmt.Printf("%v %T", id, id)
	c.Ctx.WriteString("参数正确")
}
